link: markdown content

---- start of layout ----

Note Layout Title

Understanding stow

GNU Stow can be described as a symlink farm manager, it can mirror the structure of one directory into another by creating symbolic links back to the original files. ^ef3b67

This is extremely useful when you have a directory full of configuration files that is managed by git and you want to send all of those configuration files to where they belong in your home directory.

Few important concepts to understand. Can find them in Terminology documentation.

This is how it looks in practice:

target-directory
    stow-directory
        package-1
            .dotfile1
        package-2
            .dotfile2
            .dotfile3

$HOME           --->    (target-directory)
    dotfiles    --->    (stow-directory)
        bash    --->    (package)
            .bashrc     (dotfile)
            .bash_aliases
        git
            .gitconfig

By default stow ignores some files and directories but you can set your own rules by creating the .stow-local-ignore file

read more

Now is all we truly have

---- End of layout ----